<template>
  <div>
    <el-row :gutter="10">
      <el-col :span="6">
        <el-card class="navTop">
          <!-- 第一个card -->
          <div class="card-content" style="color: #83a2ed">
            <span>10015</span>
            <span style="font-size: 14px">篇</span>
          </div>
          <div class="card-footer">
            <slot name="footer">总文章数</slot>
          </div>
        </el-card>
      </el-col>
      <el-col :span="6">
        <el-card class="navTop">
          <!-- 第一个card -->
          <div class="card-content" style="color: #6ac6e2">
            <span>336</span>
            <span style="font-size: 14px">篇</span>
          </div>
          <div class="card-footer">
            <slot name="footer">日新增文章数</slot>
          </div>
        </el-card>
      </el-col>
      <el-col :span="6">
        <el-card class="navTop">
          <!-- 第一个card -->
          <div class="card-content" style="color: #5fd9de">
            <span>935</span>
            <span style="font-size: 14px">条</span>
          </div>
          <div class="card-footer">
            <slot name="footer">评论总数</slot>
          </div>
        </el-card>
      </el-col>
      <el-col :span="6">
        <el-card class="navTop">
          <!-- 第一个card -->
          <div class="card-content" style="color: #58d88e">
            <span>123</span>
            <span style="font-size: 14px">条</span>
          </div>
          <div class="card-footer">
            <slot name="footer">日新增评论数</slot>
          </div>
        </el-card>
      </el-col>
    </el-row>
  </div>
</template>

<script>
export default {
  name: "card",
};
</script>

<style lang="less" scoped>
html {
  line-height: 1 !important;
}
.navTop {
  position: relative;
  height: 100px;
  border: 1px solid #e7e7e9;
  box-shadow: none;
  margin-bottom: 20px;
  // border-radius: 0px;
  ::v-deep .el-card__body {
    padding: 0;
  }
}
.card-content {
  font-size: 50px;
  text-align: center;
  span:nth-child(2) {
    font-size: 14px;
  }
}
.card-footer {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 24px;
  text-align: center;
  background-color: #e5e5e5;
  line-height: 24px;
}
</style>
